package com.success.application.shop.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

import com.success.application.base.BaseRecyclerViewAdapter;
import com.success.application.myapplication.R;
import com.success.application.shop.bean.SheTuan;
import com.success.application.shop.holder.SheTuanHolder;

/**
 * Created by ChrisWong on 2017/1/17.
 */

public class SheTuanAdapter extends BaseRecyclerViewAdapter<SheTuan> {
    public SheTuanAdapter(Context context, int mode) {
        super(context, mode);
    }

    @Override
    protected RecyclerView.ViewHolder onCreateDefaultViewHolder(ViewGroup parent, int viewType) {
        View view = mInflater.inflate(R.layout.shop_shetuan_item_list,parent,false);
        return new SheTuanHolder(view);
    }
    //父类已自动绑定，若有特殊需求才需要继承方法
//    @Override
//    protected void onBindDefaultViewHolder(RecyclerView.ViewHolder holder, HuoDong huodong, int position) {
//        super.onBindDefaultViewHolder(holder,huodong,position);
//    }
}
